import request from '@/utils/request'


export function getAll(payload) {
    let time = Date.now();
    return request({
        url: `/admin/services/?t=${time}&&id=${payload.id}&&size=${payload.size}&&current=${payload.current}`,
        method: 'get',
    })
}
export function udtStu(id, data) {
    return request({
        url: `/admin/services/${id}`,
        method: 'put',
        data
    })
}
export function addStu(payload) {
    return request({
        url: "/admin/services/",
        method: 'post',
        data: payload
    })
}
export function dltStu(id) {
    return request({
        url: `/admin/services/${id}`,
        method: 'delete'
    })
}